//logs.js
const util = require('../../../utils/util.js')
import request from "../../../utils/request";
var api = require("../../../utils/api");
var WxParse = require('../../../utils/wxParse/wxParse.js');

Page({
  data: {
   result: '',
   cellId: ''
  },

  onLoad(option) {
    this.setData({
      cellId: option.cellId
    })
  },
  onShow() {
    this.fetchData()
  },
  fetchData() {
    var url = api.SecretArticleDetails
    var self = this
    var params = {
      article_id: this.data.cellId
    }
    request(url, params, "POST").then(res => {
      if (res.code == 0) {
        var that = this;
        WxParse.wxParse('article', 'html', res.data.content, that, 5);
      }
    })
  }
})